package com.assignwork.mapper;

import com.assignwork.dto.VoyageWorkNodeSearchDTO;
import com.assignwork.vo.VoyageWorkNodeLastData;
import com.assignwork.vo.VoyageWorkNodePageVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.assignwork.entity.VoyageWorkNode;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 船舶停时Mapper
 */
public interface VoyageWorkNodeMapper extends BaseMapper<VoyageWorkNode> {

    /**
     * 列表
     * @param dto 搜索条件
     * @param page 分页
     * @return  List<VoyageWorkNodePageVO>
     * @author dujianyu
     * @since 2023/8/21 13:33
     */
    List<VoyageWorkNodePageVO> selectVoyageWorkNodeList(@Param("dto") VoyageWorkNodeSearchDTO dto, IPage page);

    /**
     * 最后节点的开始结束时间
     * @param dto 搜索条件
     * @return VoyageWorkNodeLastTime
     * @author dujianyu
     * @since 2024/2/29 13:50
     */
    VoyageWorkNodeLastData selectLastNodeData(@Param("dto") VoyageWorkNodeSearchDTO dto);
}